package com.tuling.designpattern.decorator;

/**
 * @author 林瑞涛
 * @desc 装饰的抽象类
 * @date 2021年07月28日 11:29
 */
public class AbstractDecorator implements People{
    //持有被装饰类的引用
    private People people;

    //构造函数注入被修饰者


    public AbstractDecorator(People people) {
        this.people = people;
    }

    @Override
    public void run() {
        people.run();
    }
}
